package com.study.mybatis.service.impl;

import com.study.mybatis.dao.entity.UserPO;
import com.study.mybatis.dao.mapper.UserMapper;
import com.study.mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public UserPO getUserById(Integer id) {

        UserPO userById = userMapper.getUserById(id);

        return userById;
    }
}
